﻿using System;
using System.Collections.Specialized;

namespace ActivateYourGlutes.Model.Internal
{
    public partial class Measurement
    {
        public void Validate(NameValueCollection errors)
        {
            MeasurementType.ValidateValue(Value, errors);
        }

        public double LocalisedValue
        {
            get
            {
                return MeasurementType.LocaliseValue(Value);
            }
            set
            {
                Value = MeasurementType.DelocaliseValue(value);
            }
        }
    }
}
